import axios from 'axios'
import { slsParams } from '@/utils/slsLogsUrl'

export function getLogStores(data) {
    let urlPre = slsParams().url;
    return  axios({
        method: "get",
        url: urlPre + data.url + data.params,
        timeout: 20000,
        headers: {
            // Date: data.date,
            Authorization: "LOG "+ data.accessKeyId + ":" + data.sign,
            Host: slsParams().host,
            'x-log-apiversion': slsParams().apiversion,
            'x-log-signaturemethod': slsParams().signaturemethod,
            'x-log-date': data.date
        },
    })
}


